$(function () {
/*    var aUrl=['../../iot/device/device_list.html',
              '../../iot/collection/collection_list.html'];
    //定义点击切换
    function changeUrl(obj){
        $(obj).click(function(){
            var itemIndex = $(obj).index(this);
            $(obj).addClass('li-active').siblings().removeClass('li-active')
            window.location.href="aUrl[itemIndex]";
        });
    };*/
    changeUrl('.q-first-nav li');
    changeUrl('.q-second-nav li');
})
//定义点击切换
function changeUrl(obj) {
    $(obj).click(function () {
        $(this).addClass('li-active').siblings().removeClass('li-active')
    });
};
